<?php

if (!defined('BASEPATH'))
  exit('No direct script access allowed');

class User extends CI_Model {

	var $_table_name = 'user';

	public function __construct() {
    	$this->load->database();
  	}

  	public function get_user_info($user_id){

  		$this->db->select('*');
  		$this->db->from($this->_table_name);

  		$this->db->where('user_id', $user_id);

  		$query = $this->db->get();

  		return $query->row_array();
  	}

}